package org.jpass.dc.common.bean;

import java.util.List;

/**
 * 项目列表的辅助类
 * @author WeiLong Peng
 *
 */
public class TreeNode {

	/* 节点的编号  */
	private String id;
	/* 节点的名称  */
	private String text;
	/* 节点的图标 */
	private String iconCls;
	/* 是否是叶子节点  */
	private Boolean leaf;
	/* 节点类型  */
	private String type;
	/* 树的子节点  */
	private List<TreeNode> children;
	
	public TreeNode() {}
	
	public TreeNode(String text, Boolean leaf) {
		this.text = text;
		this.leaf = leaf;
	}
	
	public TreeNode(String text, String iconCls, Boolean leaf) {
		this.text = text;
		this.iconCls = iconCls;
		this.leaf = leaf;
	}
	
	public TreeNode(String id, String text, String iconCls, Boolean leaf) {
		this.id = id;
		this.text = text;
		this.iconCls = iconCls;
		this.leaf = leaf;
	}
	
	public TreeNode(String id, String text, String iconCls, Boolean leaf, String type) {
		this.id = id;
		this.text = text;
		this.iconCls = iconCls;
		this.leaf = leaf;
		this.type = type;
	}

	public String getId() {
		return id;
	}
	
	public void setId(String id) {
		this.id = id;
	}
	
	public String getText() {
		return text;
	}
	
	public void setText(String text) {
		this.text = text;
	}
	
	public String getIconCls() {
		return iconCls;
	}

	public void setIconCls(String iconCls) {
		this.iconCls = iconCls;
	}

	public Boolean getLeaf() {
		return leaf;
	}
	public void setLeaf(Boolean leaf) {
		this.leaf = leaf;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public List<TreeNode> getChildren() {
		return children;
	}

	public void setChildren(List<TreeNode> children) {
		this.children = children;
	}
	
}
